Optimal. Leaf size=70 \[ \frac {25 x^5}{2}+\frac {575 x^4}{16}+\frac {965 x^3}{24}-\frac {829 x^2}{32}+\frac {1331}{128} \log \left (2 x^2-x+3\right )-\frac {4795 x}{32}-\frac {59895 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{64 \sqrt {23}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1657, 634, 618, 204, 628} \[ \frac {25 x^5}{2}+\frac {575 x^4}{16}+\frac {965 x^3}{24}-\frac {829 x^2}{32}+\frac {1331}{128} \log \left (2 x^2-x+3\right )-\frac {4795 x}{32}-\frac {59895 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{64 \sqrt {23}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 1657
Rubi steps
\begin {align*} \int \frac {\left (2+3 x+5 x^2\right )^3}{3-x+2 x^2} \, dx &=\int \left (-\frac {4795}{32}-\frac {829 x}{16}+\frac {965 x^2}{8}+\frac {575 x^3}{4}+\frac {125 x^4}{2}+\frac {1331 (11+x)}{32 \left (3-x+2 x^2\right )}\right ) \, dx\\ &=-\frac {4795 x}{32}-\frac {829 x^2}{32}+\frac {965 x^3}{24}+\frac {575 x^4}{16}+\frac {25 x^5}{2}+\frac {1331}{32} \int \frac {11+x}{3-x+2 x^2} \, dx\\ &=-\frac {4795 x}{32}-\frac {829 x^2}{32}+\frac {965 x^3}{24}+\frac {575 x^4}{16}+\frac {25 x^5}{2}+\frac {1331}{128} \int \frac {-1+4 x}{3-x+2 x^2} \, dx+\frac {59895}{128} \int \frac {1}{3-x+2 x^2} \, dx\\ &=-\frac {4795 x}{32}-\frac {829 x^2}{32}+\frac {965 x^3}{24}+\frac {575 x^4}{16}+\frac {25 x^5}{2}+\frac {1331}{128} \log \left (3-x+2 x^2\right )-\frac {59895}{64} \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )\\ &=-\frac {4795 x}{32}-\frac {829 x^2}{32}+\frac {965 x^3}{24}+\frac {575 x^4}{16}+\frac {25 x^5}{2}-\frac {59895 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{64 \sqrt {23}}+\frac {1331}{128} \log \left (3-x+2 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 63, normalized size = 0.90 \[ \frac {1}{384} \left (3993 \log \left (2 x^2-x+3\right )+4 x \left (1200 x^4+3450 x^3+3860 x^2-2487 x-14385\right )\right )+\frac {59895 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{64 \sqrt {23}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.02, size = 53, normalized size = 0.76 \[ \frac {25}{2} \, x^{5} + \frac {575}{16} \, x^{4} + \frac {965}{24} \, x^{3} - \frac {829}{32} \, x^{2} + \frac {59895}{1472} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {4795}{32} \, x + \frac {1331}{128} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 53, normalized size = 0.76 \[ \frac {25}{2} \, x^{5} + \frac {575}{16} \, x^{4} + \frac {965}{24} \, x^{3} - \frac {829}{32} \, x^{2} + \frac {59895}{1472} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {4795}{32} \, x + \frac {1331}{128} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 54, normalized size = 0.77 \[ \frac {25 x^{5}}{2}+\frac {575 x^{4}}{16}+\frac {965 x^{3}}{24}-\frac {829 x^{2}}{32}-\frac {4795 x}{32}+\frac {59895 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{1472}+\frac {1331 \ln \left (2 x^{2}-x +3\right )}{128} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.97, size = 53, normalized size = 0.76 \[ \frac {25}{2} \, x^{5} + \frac {575}{16} \, x^{4} + \frac {965}{24} \, x^{3} - \frac {829}{32} \, x^{2} + \frac {59895}{1472} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {4795}{32} \, x + \frac {1331}{128} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 55, normalized size = 0.79 \[ \frac {1331\,\ln \left (2\,x^2-x+3\right )}{128}-\frac {4795\,x}{32}+\frac {59895\,\sqrt {23}\,\mathrm {atan}\left (\frac {4\,\sqrt {23}\,x}{23}-\frac {\sqrt {23}}{23}\right )}{1472}-\frac {829\,x^2}{32}+\frac {965\,x^3}{24}+\frac {575\,x^4}{16}+\frac {25\,x^5}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 73, normalized size = 1.04 \[ \frac {25 x^{5}}{2} + \frac {575 x^{4}}{16} + \frac {965 x^{3}}{24} - \frac {829 x^{2}}{32} - \frac {4795 x}{32} + \frac {1331 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{128} + \frac {59895 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{1472} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________